package lab02.test02;

/**
 * Created by Administrator on 2017/10/15.
 */
public class Circle {
    float radius;    //圆的半径
    final double PI = 3.1415926;

    public void getArea(float radius) {        //圆的面积
        System.out.println("圆的面积.");
        System.out.println(PI * radius * radius);
    }

    public void getPerimeter(float radius) {     //圆的周长
        System.out.println("圆的周长.");
        System.out.println(2 * PI * radius);
    }
}
